<template>
	<page-body>
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex feedBackDetail_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between feedBackDetail_fd0_0_higd'>
					<view class='flex flex-wrap align-center feedBackDetail_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  feedBackDetail_fd0_0_c0_c0_higd'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='feedBackDetail_fd0_0_c1_c0_higd'>{{$t('历史反馈')}}</text>
					</view>
					<view class='flex align-center justify-end feedBackDetail_fd0_0_c2_higd'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---反馈记录带联系人flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout feedBackDetail_flex_1_higd">
				<template v-for='(item,key0) in dataMessage'>
					<view class='flex flex-wrap align-start feedBackDetail_fd1_0_higd' :key='key0'>
						<image class='feedBackDetail_fd1_0_c0_higd' mode="aspectFill" :src='avatar'></image>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub feedBackDetail_fd1_0_c1_higd'>
							<view class='flex flex-direction flex-wrap align-stretch feedBackDetail_fd1_0_c1_c0_higd'>
								<view class='flex-sub'>
									<text class='feedBackDetail_fd1_0_c1_c0_c0_c0_higd'>{{item.body}}</text>
								</view>
							</view>
							<view class='flex flex-wrap align-center'>
								<template v-for='(child,key1) in item.thumb'>
									<view class='flex flex-wrap align-center feedBackDetail_fd1_0_c1_c1_c0_higd'
										:key='key1'>
										<image class='feedBackDetail_fd1_0_c1_c1_c0_c0_higd' mode="aspectFill"
											:src='child' @tap.stop="multiImagePreview(child,item.thumb,'')"></image>
									</view>
								</template>

							</view>
							<view class='flex flex-wrap align-center feedBackDetail_fd1_0_c1_c2_higd'>
								<text class='feedBackDetail_fd1_0_c1_c2_c0_higd'>{{$t('反馈类型：')}}</text>
								<text class='feedBackDetail_fd1_0_c1_c2_c0_higd'>{{item.type}}</text>
							</view>
							<view class='flex flex-wrap align-center feedBackDetail_fd1_0_c1_c3_higd'>
								<text class='feedBackDetail_fd1_0_c1_c2_c0_higd'>{{$t('反馈时间：')}}</text>
								<text class='feedBackDetail_fd1_0_c1_c2_c0_higd'>{{item.create_time}}</text>
							</view>
							<view class='flex flex-wrap align-center feedBackDetail_fd1_0_c1_c4_higd'
								v-if="item.is_replay=='2'">
								<text class='feedBackDetail_fd1_0_c1_c4_c0_higd'>{{$t('平台回复：')}}</text>
								<text class='feedBackDetail_fd1_0_c1_c4_c1_higd'>{{item.replay}}</text>
							</view>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---反馈记录带联系人flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import { host } from '@/common/config.js';
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"aa_id": "1",
				"dataMessage": [],
				avatar:'',
				/** follow_count【关注的店铺数量】
				 *   is_pay_password【是否设置支付密码 1 已设置 0 未设置】
				 *   nickname【昵称】
				 *   certified【实名认证状态 -1 未进行认证 1 待审核 2 审核通过 3 已拒绝】
				 *   total_money【会员总金额】
				 *   browse_count【足迹数量】
				 *   collection_count【收藏数量】
				 *   _mobile【手机号不带*号】
				 *   score【积分余额】
				 *   total_consumption_money【总消费金额】
				 *   freeze_money【会员冻结金额】
				 *   user_money【会员余额】
				 *   gender【性别 1 男 2 女】
				 *   birthday【生日】
				 *   email【邮箱】
				 *   account【登录账号】
				 *   avatar【头像】
				 *   real_name【真实姓名】
				 *   mobile【手机号带*号】
				 *   userlevel_id【会员级别】
				 *   id【会员ID】
				 *   tags【标签】
				 *   hobby【爱好】
				 *   address_code【地址编码】
				 *   address【地址】
				 *   invite_code【邀请码】 **/
				"dataDetails": {
					"invite_code": "",
					"address": "",
					"address_code": "",
					"hobby": "",
					"tags": "",
					"id": "",
					"userlevel_id": "",
					"mobile": "",
					"real_name": "",
					"avatar": "",
					"account": "",
					"email": "",
					"birthday": "",
					"gender": "",
					"create_time": "",
					"user_money": "",
					"freeze_money": "",
					"total_consumption_money": "",
					"score": "",
					"_mobile": "",
					"coupon": "",
					"collection_count": "",
					"browse_count": "",
					"total_money": "",
					"certified": "",
					"nickname": "",
					"is_pay_password": "",
					"follow_count": ""
				}
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			this.getListFunc()
			this.getUserinfoFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//用户管理-意见反馈记录
			getListFunc() {
				this.minixPagingListsApi = global.apiUrls.post641472eb35317;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					user_type: '1'
				}
				this.listData = [];
				this.dataMessage = this.listData;
				this.pagingListToggle();

			},
			//个人中心-获取会员详细信息
			async getUserinfoFunc() {
				//请求方法
				//数据验证
				let group=uni.getStorageSync('USER_GROUP')
				let url=group==1?global.apiUrls.post5c78c4772da97:host+'/api/v1/5c78c4772da97'
				let datadataDetails = await this.$api.get(url, {
					user_id: uni.getStorageSync('USER_INFO_7863').aid
				});

				if (datadataDetails.data.code != 1) {
					this.$message.info(datadataDetails.data.msg);
					return
				}
				let infodataDetails = datadataDetails.data;
				this.dataDetails = infodataDetails.data
				this.avatar=group==1?this.dataDetails.avatar:this.dataDetails.avatar
				console.log(this.dataDetails)
			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;

		.feedBackDetail_flex_1_higd {
			padding: 0rpx 24rpx 0rpx 24rpx;

			.feedBackDetail_fd1_0_higd {
				padding: 24rpx 0rpx 32rpx 0rpx;
				border-bottom: 1px solid #eee;

				.feedBackDetail_fd1_0_c0_higd {
					width: 72rpx;
					height: 72rpx;
					border-radius: 50rpx 50rpx 50rpx 50rpx;
				}

				.feedBackDetail_fd1_0_c1_higd {
					margin: 0rpx 0rpx 0rpx 0rpx;

					.feedBackDetail_fd1_0_c1_c0_higd {
						position: relative;
						padding: 0rpx 0rpx 0rpx 16rpx;

						.feedBackDetail_fd1_0_c1_c0_c0_c0_higd {
							line-height: 46rpx;
							font-size: 28rpx;
							font-weight: 400;
							color: var(--benbenFontColor0);
							padding: 0rpx 30rpx 0rpx 0rpx;
						}
					}

					.feedBackDetail_fd1_0_c1_c1_c0_higd {
						margin: 12rpx 5rpx 12rpx 5rpx;

						.feedBackDetail_fd1_0_c1_c1_c0_c0_higd {
							width: 180rpx;
							height: 180rpx;
							border-radius: 16rpx 16rpx 16rpx 16rpx;
						}
					}

					.feedBackDetail_fd1_0_c1_c2_higd {
						margin: 32rpx 0rpx 16rpx 16rpx;
					}

					.feedBackDetail_fd1_0_c1_c3_higd {
						margin: 0rpx 0rpx 0rpx 16rpx;
					}

					.feedBackDetail_fd1_0_c1_c4_higd {
						padding: 24rpx 16rpx 24rpx 16rpx;
						margin: 16rpx 0rpx 0rpx 16rpx;
						border-radius: 16rpx 16rpx 16rpx 16rpx;
						background: rgba(248, 248, 248, 1);
						background-size: 100% auto !important;

						.feedBackDetail_fd1_0_c1_c4_c0_higd {
							line-height: 46rpx;
							font-size: 28rpx;
							font-weight: 400;
							color: var(--benbenFontColor4);
						}

						.feedBackDetail_fd1_0_c1_c4_c1_higd {
							line-height: 46rpx;
							font-size: 28rpx;
							font-weight: 400;
							color: var(--benbenFontColor0);
						}
					}
				}
			}
		}

		.feedBackDetail_fd1_0_c1_c2_c0_higd {
			line-height: 33rpx;
			font-size: 24rpx;
			font-weight: 400;
			color: var(--benbenFontColor2);
		}

		.feedBackDetail_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;
			border-bottom: 1px solid #eee;

			.feedBackDetail_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;
				line-height: 88rpx;

				.feedBackDetail_fd0_0_c0_higd {
					width: 100rpx;

					.feedBackDetail_fd0_0_c0_c0_higd {
						font-size: 36rpx;
						font-weight: 400;
						color: #333;
					}
				}

				.feedBackDetail_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 500;
					color: #333333;
					line-height: 50rpx;
				}

				.feedBackDetail_fd0_0_c2_higd {
					padding: 0rpx 0rpx 0rpx 0rpx;
					width: 100rpx;
				}
			}
		}
	}
</style>
